package com.hksj.base.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hksj.base.query.AlarmNumOverviewQuery;
import com.hksj.base.query.AlarmQuery;
import com.hksj.base.query.AlarmRankQuery;
import com.hksj.base.query.BaseSpecialityQuery;
import com.hksj.base.vo.AlarmRankVO;
import com.hksj.base.vo.AlarmRecordVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DefaultAlarmMapper {

    List<AlarmRecordVO> pageAlarmHistory(@Param("query") AlarmQuery query, Page<AlarmRecordVO> page);

    List<AlarmRankVO> listDeviceAlarmRank(@Param("query") AlarmRankQuery query);

    List<AlarmRecordVO> listCurrentAlarm(@Param("query") BaseSpecialityQuery query);

    Integer getAlarmNum(@Param("query") AlarmNumOverviewQuery query);
}
